package com.alumni_circle.service.home.impl;

import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.entity.home.PartTime;
import com.alumni_circle.entity.home.VO.PartTimeViewVO;
import com.alumni_circle.mapper.home.PartTimeMapper;
import com.alumni_circle.service.home.IPartTimeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:47
 */
@Service
public class PartTimeServiceImpl extends BaseServiceImpl<PartTimeMapper, PartTime> implements IPartTimeService {

    @Resource
    private PartTimeMapper partTimeMapper;

    @Override
    public List<PartTimeViewVO> selectListLostFound(String count) {
        return partTimeMapper.selectListPartTime(count);
    }

    @Override
    public List<PartTimeViewVO> selectMyListPartTime(String id) {
        return partTimeMapper.selectMyListPartTime(id);
    }

    @Override
    public List<PartTimeViewVO> searchMyListPartTime(String id, String search) {
        return partTimeMapper.searchMyListPartTime(id,search);
    }
}
